<template>
  <div class="operation-icon">
    <i :class="iconName"/>
    <span>{{iconText}}</span>
  </div>


</template>

<script setup lang="ts">
const props = defineProps<{
  iconName:string,
  iconText:string
}>();
const {iconName, iconText} = toRefs(props);
</script>

<style scoped lang="less">
.operation-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 16px;
  font-size: 8px;
  color: white;
  cursor: pointer;
  i {
    width: 28px;
    height: 28px;
    margin-bottom: 5px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }
}

</style>
